package com.myhome.feign;

import com.myhome.config.feign.OAuth2FeignConfig;
import com.myhome.dto.BankDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author QYiXin
 * @Date 2021 10 26 23 27
 **/
@FeignClient(value = "member-service", contextId = "UserBankInfo",configuration = OAuth2FeignConfig.class, path = "/userBanks")
public interface UserBankInfo {
    @GetMapping("/getUserBankDto/{userId}")
    public BankDto getUserBankInfo(@PathVariable("userId") Long userId);
}
